package com.wt.admin.mapper.language;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wt.admin.domain.dto.language.ClassificationDTO;
import com.wt.admin.domain.entity.language.ClassificationEntity;
import com.wt.admin.domain.entity.sys.SysMenuEntity;
import com.wt.admin.domain.mp.language.ClassificationMP;
import com.wt.admin.domain.vo.language.ClassificationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ClassificationMapper extends BaseMapper<ClassificationEntity> {

    List<ClassificationMP> list(@Param("data") ClassificationDTO data);

    @Select("select * from language_classification where class_name = #{name} ")
    ClassificationEntity findByClassName(@Param("name") String className);

}
